package com.pets.springboot_petshop.service;

import com.pets.springboot_petshop.entity.Service;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * @Author: wxk
 * @Email: 2089967794@qq.com
 * @Date: 2024/10/14 下午2:19 周一
 * @Description: 服务接口
 */
public interface ServiceService {
    //id查询
    Service selectService(int id);
    //pettype_id，通过宠物分类查询
    List<Service> selectPettypeName(String pettype_name);
    //name，通过姓名模糊查询
    List<Service> selectServicename(String name);
    //name,通过姓名查询
   Service selectname(String name);
    //查询所有
    List<Service> findAll();
    //添加
    int addService(Service service);
    //删除
    int deleteServiceById(int id);
    //修改数据
     int updateServiceById(Service service);
}
